package com.firefly.admin.common.utils;

import lombok.extern.slf4j.Slf4j;
import com.firefly.admin.common.constant.Constants;
import org.springframework.stereotype.Component;

/**
 * @author hejishan
 */
@Component
@Slf4j
public class PropertiesUtil {

    public static String getValue(String key) {
        try {
            return (String) RedisUtil.hget(Constants.Redis.CONFIG_KEY, key);
        } catch (Exception e) {
            log.error("############properties [" + key + "]获取失败！！");
        }
        return null;
    }
}
